package com.logistics.team3.po;
// default package

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * 运力调度表
 * Dispatch entity. @author MyEclipse Persistence Tools
 */

public class Dispatch  implements java.io.Serializable {


    // Fields    

     private String id;
     /**
      *线路 
      */
     private Way way;
     /**
      *司机 
      */
     private Driver driver;
     /**
      *创建人 
      */
     private Employee employee;
     /**
      *车辆 
      */
     private Car car;
     /**
      *创建时间 
      */
     private Date buildTime;
     /**
      *发车时间 
      */
     private Date beginTime;
     /**
      *结束时间 
      */
     private Date endTime;
     private Set receipts = new HashSet(0);


    // Constructors

    /** default constructor */
    public Dispatch() {
    }

    
    /** full constructor */
    public Dispatch(Way way, Driver driver, Employee employee, Car car, Date buildTime, Date beginTime, Date endTime, Set receipts) {
        this.way = way;
        this.driver = driver;
        this.employee = employee;
        this.car = car;
        this.buildTime = buildTime;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.receipts = receipts;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public Way getWay() {
        return this.way;
    }
    
    public void setWay(Way way) {
        this.way = way;
    }

    public Driver getDriver() {
        return this.driver;
    }
    
    public void setDriver(Driver driver) {
        this.driver = driver;
    }

    public Employee getEmployee() {
        return this.employee;
    }
    
    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Car getCar() {
        return this.car;
    }
    
    public void setCar(Car car) {
        this.car = car;
    }

    public Date getBuildTime() {
        return this.buildTime;
    }
    
    public void setBuildTime(Date buildTime) {
        this.buildTime = buildTime;
    }

    public Date getBeginTime() {
        return this.beginTime;
    }
    
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return this.endTime;
    }
    
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Set getReceipts() {
        return this.receipts;
    }
    
    public void setReceipts(Set receipts) {
        this.receipts = receipts;
    }

}